<?php

declare(strict_types=1);
/**
 * ^2_3^ HttpServer路由定义 (管理路由)
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
use Hyperf\HttpServer\Router\Router;

// 路由定义文档
// https://hyperf.wiki/3.1/#/zh-cn/quick-start/overview

// 首页访问
Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');

Router::get('/favicon.ico', function () {
    return '';
});
